def monitor_model(model, threshold=0.5):
    """
    监控模型
    :param model: 模型
    :param threshold: 异常阈值
    :return: 是否检测到异常
    """
    # 模拟监控逻辑
    anomaly_score = np.random.rand()
    return anomaly_score > threshold

# 示例
model = "YourModel"
is_anomaly = monitor_model(model)
print